<template>
	<view class="bg_F5F5F5">
		<!-- #ifdef APP-PLUS -->
		<view class="u-h-88">

		</view>
		<!-- #endif -->
		<view class="bld5_de_fd u-p-t-40 u-p-b-40 u-p-l-20 u-p-r-20">
			<view class="u-m-t-20 u-flex u-row-between">
				<view class="u-flex">
					<u-image @click='$u.route("/subcontract/mymassage/personal/personal")' :src="userinfo.avatar"
						mode="aspectFill" width="113rpx" height='113rpx' shape="circle">
					</u-image>
					<view class="u-m-l-30 u-h-113">
						<view @click='$u.route("/subcontract/mymassage/personal/personal")' class="u-flex">
							<view class="u-m-r-10 u-weight u-font-34">{{userinfo.name}}</view>
						</view>
						<view class="u-font-26 u-m-t-10">推荐人：{{userinfo.tid_name}}</view>
						<view class="u-flex">
							<!-- 高级和普通会员 -->
							<!-- <u-image src="https://www.sqkjkj.vip/wxImg/my/img4.png" mode="aspectFill" width="28rpx" height='28rpx'>
							</u-image> -->
							<!-- 普通用户 -->
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img33.png" mode="aspectFill" width="28rpx"
								height='28rpx' v-if="userinfo.level==0">
							</u-image>
							<!-- 合伙人 -->
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img35.png" mode="aspectFill" width="40rpx"
								height='40rpx' v-else-if="userinfo.level==4">
							</u-image>
							<!-- 省市县代理 -->
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img34.png" mode="aspectFill" width="40rpx"
								height='40rpx' v-else>
							</u-image>
							<view class="u-m-l-8 u-font-20 u-m-t-10" style="color: #FF3846FF;">
								{{userinfo.identity_name}}
							</view>

						</view>
					</view>
				</view>
				<view class="u-h-113">
					<view class="u-m-r-20" @click="scanClick" style="display: inline-block;">
						<u-icon name='scan' size='50'></u-icon>
					</view>
					<view class="u-m-r-20 u-relative" @click="$u.route('/subcontract/mymassage/mymassage')"
						style="display: inline-block;">
						<u-icon name='more-circle' size='50'></u-icon>
						<view v-if="userinfo.unread_num>0" class="u-absolute cl_FD1D4D u-font-28 u-weight"
							style="top: -30rpx;right: -20rpx;">
							{{userinfo.unread_num}}
						</view>
					</view>
					<view class="" @click="$u.route('/subcontract/set/set')" style="display: inline-block;">
						<u-icon name='setting' size='50'></u-icon>
					</view>
				</view>
			</view>
			<!-- 只有是会员时显示 -->
			<!-- v-if="userinfo.identity=='member'" -->
			<view class="two">
				<view class="u-flex u-row-between">
					<view class="u-flex u-p-t-10">
						<view class="u-h-100">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img4.png" mode="aspectFill" width="40rpx"
								height='40rpx'>
							</u-image>
						</view>
						<view class="u-m-l-8 u-h-100 " v-if="userinfo.vip_id==3">
							<view class="u-font-34" style="color: #FFE1A9FF;">高级会员</view>
							<view class="u-font-20 u-m-t-8" style="color:#DCCEB3FF ;">
								{{$u.timeFormat(userinfo.vip_end_time, 'yyyy-mm-dd hh:MM:ss')}}
							</view>
						</view>
						<view class="u-m-l-8 u-h-100 " v-if="userinfo.vip_id==2">
							<view class="u-font-34" style="color: #FFE1A9FF;">中级会员</view>
							<view class="u-font-20 u-m-t-8" style="color:#DCCEB3FF ;">
								{{$u.timeFormat(userinfo.vip_end_time, 'yyyy-mm-dd hh:MM:ss')}}
							</view>
						</view>
						<view class="u-m-l-8 u-h-100 " v-if="userinfo.vip_id==1">
							<view class="u-font-34" style="color: #FFE1A9FF;">初级会员</view>
							<view class="u-font-20 u-m-t-8" style="color:#DCCEB3FF ;">
								{{$u.timeFormat(userinfo.vip_end_time, 'yyyy-mm-dd hh:MM:ss')}}
							</view>
						</view>
						<view class="u-m-l-8 u-h-100 " v-if="userinfo.vip_id==0">
							<view class="u-font-34" style="color: #FFE1A9FF;">开通会员</view>
							<view class="u-font-20 u-m-t-8" style="color:#DCCEB3FF ;">开通会员享无限交易</view>
						</view>
					</view>
					<view v-if="userinfo.vip_id!=0" class="u-b-r-30 u-font-20 u-w-150 u-h-50 u-l-h-50 u-text-center"
						style="background-color:#ffce8cFF;color: #3B2A24FF;" @click="$u.route('/pages/vip/vip')">
						查看权益
						<u-icon name='arrow-right'></u-icon>
					</view>
					<view v-else class="u-b-r-30 u-font-20 u-w-150 u-h-50 u-l-h-50 u-text-center"
						style="background-color:#ffce8cFF;color: #3B2A24FF;" @click="$u.route('/pages/vip/vip')">
						立即开通
						<u-icon name='arrow-right'></u-icon>
					</view>
				</view>
			</view>
		</view>

		<!-- 只有是代理的时候显示 -->
		<view v-if="(userinfo && userinfo.make_money)&&(userinfo.is_agent==1 || userinfo.is_partner==1)" class="u-p-20">
			<view v-if="" class="bg_FFFFFF u-p-t-20 u-p-b-20 u-b-r-16">
				<u-row>
					<u-col span="3">
						<view class=" u-flex-col u-col-center">
							<view class=" u-weight">￥{{userinfo.make_money.today}}</view>
							<view class="cl_333333FF u-font-28 u-m-t-20 u-font-20">今日赚</view>
						</view>
					</u-col>

					<u-col span="3">
						<view class=" u-flex-col u-col-center">
							<view class=" u-weight">￥{{userinfo.make_money.yesterday}}</view>
							<view class="cl_333333FF u-font-28 u-m-t-20 u-font-20">昨日赚</view>
						</view>
					</u-col>

					<u-col span="3">
						<view class=" u-flex-col u-col-center">
							<view class=" u-weight">￥{{userinfo.make_money.this_month}}</view>
							<view class="cl_333333FF u-font-28 u-m-t-20 u-font-20">本月赚</view>
						</view>
					</u-col>
					<u-col span="3">
						<view class=" u-flex-col u-col-center">
							<view class=" u-weight">￥{{userinfo.make_money.last_month}}</view>
							<view class="cl_333333FF u-font-28 u-m-t-20 u-font-20">上月赚</view>
						</view>
					</u-col>

				</u-row>
			</view>
		</view>

		<view class="u-p-20 u-flex ">
			<view @click="$u.route('/subcontract/invitation/invitation')"
				class="u-w-354 u-h-134 u-p-20 bg_FFFFFF u-flex u-row-between u-b-r-16 ">
				<view class="">
					<view class="cl_1C1C1CFF u-weight u-font-28">邀请好友</view>
					<view class="u-flex">
						<view class="cl_FC3533FF u-font-20 u-m-t-20 u-m-r-8">邀请好友一起玩</view>
						<u-image src="https://www.sqkjkj.vip/wxImg/my/img7.png" mode="aspectFill" width="20rpx"
							height='20rpx'>
						</u-image>
					</view>

				</view>
				<u-image src="https://www.sqkjkj.vip/wxImg/my/img6.png" mode="aspectFill" width="99rpx" height='99rpx'>
				</u-image>
			</view>

			<view @click="$u.route('/subcontract/mybag/mybag')"
				class="u-w-344 u-h-134 u-p-20 bg_FFFFFF u-flex u-row-between u-b-r-16 u-m-l-10">
				<view class="">
					<view class="cl_1C1C1CFF u-weight u-font-28">我的钱包</view>
					<view class="u-flex">
						<view class="cl_FC3533FF u-font-20 u-m-t-20 u-m-r-8">查看钱包明细</view>
						<u-image src="https://www.sqkjkj.vip/wxImg/my/img7.png" mode="aspectFill" width="20rpx"
							height='20rpx'>
						</u-image>
					</view>

				</view>
				<u-image src="https://www.sqkjkj.vip/wxImg/my/img8.png" mode="aspectFill" width="99rpx" height='99rpx'>
				</u-image>
			</view>
		</view>


		<view class=" u-p-20">
			<view class="bg_FFFFFF u-p-20 u-b-r-16">
				<view class="u-flex u-row-between">
					<view @click="num=1" class="u-rela" style="padding: 0 30rpx;border-right: 1rpx solid #DCD4D3FF;"
						:class="num==1?'u-weight':''">
						<view class=" u-font-30" style="width: 151rpx ;text-align: center;"> 原价购订单</view>
						<view class="u-abso u-t-0">
							<u-image v-if="num==1" src="https://www.sqkjkj.vip/wxImg/my/img9.png" mode="aspectFill"
								width="151rpx" height='13rpx'>
							</u-image>
						</view>
					</view>
					<view class="u-rela" @click="num=2" style="padding: 0 30rpx;border-right: 1rpx solid #DCD4D3FF;"
						:class="num==2?'u-weight':''">
						<view class=" u-font-30" style="width: 151rpx ;text-align: center;"> 半价购订单</view>
						<view class="u-abso u-t-0">
							<u-image v-if="num==2" src="https://www.sqkjkj.vip/wxImg/my/img9.png" mode="aspectFill"
								width="151rpx" height='13rpx'>
							</u-image>
						</view>
					</view>
					<view class="u-rela" @click="num=3" style="padding: 0 30rpx;" :class="num==3?'u-weight':''">
						<view class=" u-font-30" style="width: 151rpx ;text-align: center;"> 兑换订单</view>
						<view class="u-abso u-t-0">
							<u-image v-if="num==3" src="https://www.sqkjkj.vip/wxImg/my/img9.png" mode="aspectFill"
								width="151rpx" height='13rpx'>
							</u-image>
						</view>
					</view>
				</view>

				<view class="u-m-t-30 u-p-20 u-flex u-row-between" v-if="num==1">
					<view class="u-flex-col u-col-center u-rela" v-for="(item,index) in type2_list" :key="index"
						@click="$u.route(`${item.url}`)">
						<u-image :src="item.img" width="63rpx" height='63rpx'>
						</u-image>
						<view class="u-font-28" style="color: #333333FF;">{{item.title}}</view>
						<view class="u-absolute cl_FD1D4D u-font-28 u-weight" style="top: -25rpx;right: -10rpx;">
							{{item.count<=0?'':item.count}}
						</view>
					</view>
				</view>
				<view class="u-m-t-30 u-p-20 u-flex u-row-between" v-if="num==2">

					<view class="u-flex-col u-col-center u-rela" v-for="(item,index) in type3_list" :key="index"
						@click="$u.route(`${item.url}`)">
						<u-image :src="item.img" width="63rpx" height='63rpx'>
						</u-image>
						<view class="u-font-28" style="color: #333333FF;">{{item.title}}</view>
						<view class="u-absolute cl_FD1D4D u-font-28 u-weight" style="top: -25rpx;right: -10rpx;">
							{{item.count<=0?'':item.count}}
						</view>
					</view>

				</view>
				<view class="u-m-t-30 u-p-20 u-flex u-row-between" v-if="num==3">

					<view class="u-flex-col u-col-center u-rela" v-for="(item,index) in type1_list" :key="index"
						@click="$u.route(`${item.url}`)">
						<u-image :src="item.img" width="63rpx" height='63rpx'>
						</u-image>
						<view class="u-font-28" style="color: #333333FF;">{{item.title}}</view>
						<view class="u-absolute cl_FD1D4D u-font-28 u-weight" style="top: -25rpx;right: -10rpx;">
							{{item.count<=0?'':item.count}}
						</view>
					</view>

				</view>
			</view>
		</view>
		<!-- #ifdef MP-WEIXIN -->
		<!-- 常用功能 -->
		<view class="u-p-20">
			<view class="u-p-20 u-b-r-16 bg_FFFFFF">
				<view class="#1C1C1CFF u-weight ">常用功能</view>
				<u-row>
					<!-- <u-col v-if="userinfo&&userinfo.living_expenses!=1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/Rechargemoney/Rechargemoney')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img18.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">生活缴费</view>
						</view>
					</u-col> -->
					<u-col v-if="userinfo&&userinfo.living_expenses==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="handleToMer">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img18.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">会员专享</view>
						</view>
					</u-col>


					<u-col span="3">
						<view class=" u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/myscore/myscore')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img19.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">我的积分</view>
						</view>
					</u-col>

					<u-col v-if="userinfo.userinfo==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/subcontract/mycard/mycard')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img20.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">我的卡券</view>
						</view>
					</u-col>
					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/footprint/footprint')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/zj.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">我的足迹</view>
						</view>
					</u-col>
					<u-col v-if="userinfo.userinfo==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/contribution/contribution')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img21.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">贡献值记录</view>
						</view>
					</u-col>

					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/mylickshop/mylickshop')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img22.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">关注店铺</view>
						</view>
					</u-col>
					<u-col span="3" @click="$u.route('/subcontract/mylick/mylick')">

						<view class="u-m-t-40 u-flex-col u-col-center">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img23.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">收藏夹</view>
						</view>
					</u-col>
					<u-col v-if="userinfo.userinfo==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/subcontract/join/join')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img24.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">加盟合作</view>
						</view>
					</u-col>
					<!-- <u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/pages/my/business/business')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img25.png" mode="aspectFill" width="95rpx" height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">商家入驻</view>
						</view>
					</u-col> -->
					<u-col v-if="userinfo.is_agent==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/subcontract/team/team')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img31.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">区域代理</view>
						</view>
					</u-col>
					<u-col span="3" v-if="userinfo.is_partner==1">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/myshoppeople/myshoppeople')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img32.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">合伙人</view>
						</view>
					</u-col>
					<u-col v-if="userinfo.userinfo==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/invoice/invoice')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img26.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">发票管理</view>
						</view>
					</u-col>
					<u-col v-if="userinfo.userinfo==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/topUpCard/topUpCard')">
							<u-image src="https://www.sqkjkj.vip/wxImg/czk.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">充值卡激活</view>
						</view>
					</u-col>
					<u-col v-if="userinfo.userinfo==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="enterClick">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/m40.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">APP下载</view>
						</view>
					</u-col>
					<u-col  span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="toLinkWx">
							<u-image src="https://img.sqkjkj.vip/uploads/images/20240608/e85970bbdcae57c6852d4ee6671b5fdd" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">同城信息</view>
						</view>
					</u-col>

				</u-row>
			</view>
		</view>
		<!-- #endif -->
		<!-- #ifndef MP-WEIXIN -->
		<!-- 常用功能 -->
		<view class="u-p-20">
			<view class="u-p-20 u-b-r-16 bg_FFFFFF">
				<view class="#1C1C1CFF u-weight ">常用功能</view>
				<u-row>
					<!-- <u-col span="3" v-if="userinfo&&userinfo.living_expenses!=1">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/Rechargemoney/Rechargemoney')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img18.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">生活缴费</view>
						</view>
					</u-col> -->
					
					
					
					<u-col span="3" v-if="userinfo&&userinfo.living_expenses==1">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="handleToMer">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img18.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">会员专享</view>
						</view>
					</u-col>

					<u-col span="3">
						<view class=" u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/myscore/myscore')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img19.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">我的积分</view>
						</view>
					</u-col>

					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/subcontract/mycard/mycard')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img20.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">我的卡券</view>
						</view>
					</u-col>
					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/footprint/footprint')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/zj.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">我的足迹</view>
						</view>
					</u-col>
					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/contribution/contribution')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img21.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">贡献值记录</view>
						</view>
					</u-col>

					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/mylickshop/mylickshop')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img22.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">关注店铺</view>
						</view>
					</u-col>
					<u-col span="3" @click="$u.route('/subcontract/mylick/mylick')">

						<view class="u-m-t-40 u-flex-col u-col-center">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img23.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">收藏夹</view>
						</view>
					</u-col>
					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/subcontract/join/join')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img24.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">加盟合作</view>
						</view>
					</u-col>
					<!-- <u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/pages/my/business/business')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img25.png" mode="aspectFill" width="95rpx" height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">商家入驻</view>
						</view>
					</u-col> -->
					<u-col v-if="userinfo.is_agent==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="$u.route('/subcontract/team/team')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img31.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">区域代理</view>
						</view>
					</u-col>
					<u-col span="3" v-if="userinfo.is_partner==1">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/myshoppeople/myshoppeople')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img32.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">合伙人</view>
						</view>
					</u-col>
					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/invoice/invoice')">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img26.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">发票管理</view>
						</view>
					</u-col>
					<u-col v-if="userinfo.userinfo==1" span="3">
						<view class="u-m-t-40 u-flex-col u-col-center"
							@click="$u.route('/subcontract/topUpCard/topUpCard')">
							<u-image src="https://www.sqkjkj.vip/wxImg/czk.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">充值卡激活</view>
						</view>
					</u-col>
					<u-col span="3">
						<view class="u-m-t-40 u-flex-col u-col-center" @click="enterClick">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/m40.png" mode="aspectFill" width="95rpx"
								height='95rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">APP下载</view>
						</view>
					</u-col>

				</u-row>
			</view>
		</view>

		<!-- #endif -->



		<view class="u-p-20">
			<view class="u-p-20 u-b-r-16 bg_FFFFFF">
				<view class="#1C1C1CFF u-weight ">常用功能</view>
				<u-row>
					<!-- <u-col span="3">
						@click="$u.route('/pages/my/myfoot/myfoot')"
						<view class="u-m-t-40 u-flex-col u-col-center">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img27.png" mode="aspectFill" width="59rpx" height='59rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">我的足迹</view>
						</view>
					</u-col> -->

					<u-col span="3">
						<view @click="$u.route('/subcontract/richText/richText?type=关于我们')"
							class=" u-m-t-40 u-flex-col u-col-center">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img28.png" mode="aspectFill" width="59rpx"
								height='59rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">关于我们</view>
						</view>
					</u-col>

					<u-col span="3">
						<view @click="$u.route('/subcontract/richText/richText?type=帮助中心')"
							class="u-m-t-40 u-flex-col u-col-center">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img29.png" mode="aspectFill" width="59rpx"
								height='59rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">帮助中心</view>
						</view>
					</u-col>

					<u-col span="3">
						<!-- @click="nums=1" -->
						<!-- #ifndef MP-WEIXIN -->
						<view @click="call" class="u-m-t-40 u-flex-col u-col-center">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img30.png" mode="aspectFill" width="59rpx"
								height='59rpx'>
							</u-image>
							<view class="cl_333333FF u-font-28">联系客服</view>
						</view>
						<!-- #endif -->
						<!-- #ifdef MP-WEIXIN -->
						<view class="u-w-200 u-m-t-40 u-flex-col u-col-center">
							<u-image src="https://www.sqkjkj.vip/wxImg/my/img30.png" mode="aspectFill" width="59rpx"
								height='59rpx'>
							</u-image>
							<button
								style="width:200rpx;margin-top: 10rpx;height: 60rpx;font-size: 28rpx;background: transparent;"
								open-type="contact">在线咨询</button>
						</view>
						<!-- #endif -->
					</u-col>

				</u-row>
			</view>
		</view>
		<!-- #ifdef MP-WEIXIN-->
		<view class="" style="min-height: 200px;" v-if="buttomAdInfo">
			<base-ad :adInfo="buttomAdInfo" v-if="buttomAdInfo"></base-ad>
		</view>
		<!-- #endif -->

		<!-- #ifdef APP-ANDROID || H5 -->
		<view class="" style="height: 200px;" v-if="buttomAdInfo">
			<base-ad :adInfo="buttomAdInfo" v-if="buttomAdInfo"></base-ad>
		</view>
		<!-- #endif -->


		<!-- 我的客服 -->
		<view class="ones u-p-30" v-if="nums==1">
			<view class="bg_FFFFFF u-abso u-w-660 u-p-30 u-l-50 u-t-300 u-b-r-20">
				<view class="u-weight u-font-54" style="color: #1C1C1C;">联系客服</view>
				<view class="u-m-t-50 u-flex">
					<view class="u-font-20">电话</view>
					<view class="u-font-36" style="padding: 0 70rpx;">123456789</view>
					<view class="" style="padding: 0 50rpx;" @click="call">
						<u-image src='https://www.sqkjkj.vip/wxImg/my/img38.png' width='39rpx' height='39rpx'></u-image>
					</view>
				</view>

				<view class="u-m-t-50 u-flex">
					<view class="u-font-20">微信</view>
					<view class="u-font-36" style="padding: 0 70rpx;">123456789</view>
					<view class="" style="padding: 0 50rpx;">
						<u-image src='https://www.sqkjkj.vip/wxImg/my/img37.png' width='39rpx' height='39rpx'
							@click='copy'></u-image>
					</view>
				</view>

				<view class="u-m-t-50 u-flex">
					<view class="u-font-20 u-h-234">二维码</view>

					<view class="" style="padding: 0 50rpx;">
						<u-image src='https://www.sqkjkj.vip/wxImg/common/img/zz.jpg' width='234rpx' height='234rpx'>
						</u-image>
					</view>
				</view>
				<view @click="saves" class="u-w-460 u-auto u-m-t-30 u-b-r-20 u-h-94 u-text-center u-l-h-94 cl_FFF"
					style="background-color:#FC3533 ;">保存图片</view>
			</view>
			<view class="u-abso u-r-80 u-t-200">
				<u-image src='https://www.sqkjkj.vip/wxImg/my/img36.png' width='289rpx' height='244rpx'></u-image>
			</view>
		</view>

		<view class="u-h-100">

		</view>
		<u-mask :show="downApp">
			<view class="warp">
				<view class="u-w-700 bg_FFFFFF u-p-20 u-b-r-20">

				</view>
			</view>
		</u-mask>
	</view>

</template>
<script>
	import {
		URL
	} from '@/config/config.js'
	export default {
		data() {
			return {
				// 订单类型
				num: 2,
				nums: 0,
				userinfo: '',
				downApp: false,
				type1_list: [],
				type2_list: [],
				type3_list: [],
				buttomAdInfo: null,
			};
		},
		onLoad() {
			
		},
		onShow() {
			this.massage()
			this.myOrderStatistics()
			this.getButtomAd()
		},

		methods: {
			getButtomAd() {
				this.$api.getAd({
					pos: 'user_center'
				}, res => {
					console.log(res)
					this.buttomAdInfo = res.data.data
				})
			},
			toLinkWx(){
				wx.navigateToMiniProgram({
				  appId: 'wxdd3fa7d8286673bc',
				  envVersion: 'develop',
				  success(res) {
				    // 打开成功
				  }
				})
			},
			massage() {
				this.$api.get_my_massage({}, res => {
					if (res.data.code == 1) {
						this.userinfo = res.data.data.data
						uni.setStorageSync("userinfo", this.userinfo)
					}
				})
			},
			myOrderStatistics() {
				this.$api.myOrderStatistics({}, res => {
					if (res.data.code == 1) {
						this.type1_list = res.data.data.type1_list
						this.type2_list = res.data.data.type2_list
						this.type3_list = res.data.data.type3_list
					}
				})
			},
			handleToMer() {
				
				this.$api.getExclusive({}, res => {
					if (res.data.code == 1) {
						
						this.$u.route('/subcontract/Rechargemoney2/Rechargemoney2');
					}
				})

			},
			scanClick() {
				uni.scanCode({
					onlyFromCamera: true,
					scanType: 'qrCode',
					success: (res) => {
						console.log(res)
						let data = JSON.parse(res.result)

						if (data.uid) {
							const {
								uid,
								deduction,
								avatar,
								username
							} = data
							const path =
								`/subcontract/payment/payment?uid=${uid}&deduction=${deduction}&avatar=${avatar}&username=${username}`
							this.$u.route(path)
						} else {
							this.$u.route(res.url)
						}

					}
				})
			},
			// 点击复制
			copy() {
				uni.setClipboardData({
					data: 'hello',
					success: function() {
						console.log('success');
					}
				});
			},
			// 保存图片
			saves() {
				uni.saveImageToPhotosAlbum({
					filePath: 'https://www.sqkjkj.vip/wxImg/common/img/zz.jpg',
					success: function() {
						console.log('save success');
						this.nums = 0
					}
				});
			},
			// 拨打电话
			call() {
				this.$api.service_telephone({}, res => {
					if (res.data.code == 1) {
						// this.$api.com.makePhoneCall(res.data.data.tel)
						uni.makePhoneCall({
							phoneNumber: res.data.data.tel //仅为示例
						});
					}
				})
			},
			copyOnWrite(){
				this.$api.copyOnWrite({},res=>{})
			},
			enterClick() {

				uni.showModal({
					title: '提示',
					content: '请选择复制链接，在浏览器中粘贴访问即可下载',
					cancelText: '用户端',
					confirmText: '商家端',
					success: (s) => {
						uni.setStorageSync('noOnHide', 'noOnHide')
						let url = ''
						if (s.confirm) {
							url = `https://www.sqkjkj.vip/masterDown/attachment/20240110/1704899183194.apk`
						} else {
							url = `https://www.sqkjkj.vip/userDown/attachment/20240808/1723126782842.apk`
						}
						uni.setClipboardData({
							data: url
						})
					}
				})

			}
		}
	};
</script>
<style lang="scss" scoped>
	page {
		width: 750rpx;
		background-color: #f5f5f5 !important;
	}

	.two {
		width: 710rpx;
		height: 113rpx;
		padding: 0 40rpx;
		margin-top: 56rpx;
		background: url('https://www.sqkjkj.vip/wxImg/my/img5.png') no-repeat;
		background-size: 100% 100%;

	}

	.ones {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;

		background: rgba(0, 0, 0, .4);
	}
</style>